package by.grsu.hdm.media;

import by.grsu.hdm.media.file.MediaFile;

public abstract class MediaPlayer {

	public static enum Formats {
		FLAC, MP_4, MP_3, WAV
	}

	private MediaFile mediaFile;

	public MediaPlayer() {
	}


	protected void handleRemoteSignals(int signalKey, MediaFile mediaFile){
			switch (signalKey) {
			case RemoteMediaControler.PLAY_SIGNAL:
				play(mediaFile);
				break;
			case RemoteMediaControler.PAUSE_SIGNAL:
				pause(mediaFile);
				break;
			case RemoteMediaControler.STOP_SIGNAL:
				stop(mediaFile);
				break;
			default:
				System.err.println("Illegal media remote signal key");
				break;
			}
		
	}

	public abstract void stop(MediaFile mediaFile);

	public abstract void pause(MediaFile mediaFile);

	public abstract void play(MediaFile mediaFile);

}
